<?php

namespace app\common\model;

class ShopGoods extends BaseModel
{
    public function specs()
    {
        return $this->hasMany(ShopGoodsSpec::class, 'gid')->where('is_deleted', 0);
    }
    public function cate(){
        return $this->belongsTo('ShopGoodsCate','cate_id');
    }
}